<?php
use Phalcon\Mvc\User\Component;

class Elements extends Component
{
    public function getMenu($text)
    {
        var_dump(
            $this->getDI()->getShared('dispatcher')
        );
        var_dump(
            $this->getDI()->getShared('request')
        );
        echo $text;
    }

    public function getTabs()
    {
        // ...
    }
}
